/************************************************************************

								Heroes IV
					  Copyright 2000, The 3DO Company

	------------------------------------------------------------------
  						       blended_bitmap_window.h

	$Header: /game/blended_bitmap_window.h $

	$NoKeywords: $

 ************************************************************************/
#ifndef BLENDED_BITMAP_WINDOW_H_INCLUDED
#define BLENDED_BITMAP_WINDOW_H_INCLUDED

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "bitmap_layer_window.h"

class t_blended_bitmap_window : public t_bitmap_layer_window
{
public:
	t_blended_bitmap_window( t_bitmap_layer const* bitmap, t_screen_point point, 
		                     t_window* parent = 0, bool use_offset = true, int alpha = 15 );

	int          get_alpha() const;
	virtual void paint( t_paint_surface& paint_surface );
	void         set_alpha( int alpha );
protected:
	virtual void on_bitmap_changed();
	int          m_alpha;

};

inline int t_blended_bitmap_window::get_alpha() const
{
	return m_alpha;
}

#endif // BLENDED_BITMAP_WINDOW_H_INCLUDED